package likong.bibliothek.app.navigation;

import org.apache.wicket.markup.html.WebPage;

import likong.bibliothek.pages.autor.AutorWeb;
import likong.bibliothek.pages.buch.BuecherWeb;
import likong.bibliothek.pages.language.LanguageWeb;
import likong.bibliothek.pages.spender.SpenderWeb;
import likong.bibliothek.pages.status.StatusWeb;

public enum Anwendungen {
	buch("Bücher", BuecherWeb.class),
	autor("Autoren", AutorWeb.class),
	spender("Spender", SpenderWeb.class),
	status("Status", StatusWeb.class),
	language("Sprachen", LanguageWeb.class);

	String title;
	Class<? extends WebPage> klasse;

	Anwendungen(String url, Class<? extends WebPage> klasse) {
		setTitle(url);
		setKlasse(klasse);
	}

	public void setTitle(String url) {
		this.title = url;
	}

	public String getTitle() {
		return title;
	}

	public void setKlasse(Class<? extends WebPage> klasse) {
		this.klasse = klasse;
	}

	public Class<? extends WebPage> getKlasse() {
		return klasse;
	}

}
